// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addComment POST /api/comment/add */
export async function addCommentUsingPost(
  body: API.CommentAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/comment/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** delComment POST /api/comment/del */
export async function delCommentUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.delCommentUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/comment/del', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** pageNovelComment GET /api/comment/page/novel */
export async function pageNovelCommentUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.pageNovelCommentUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageCommentVO_>('/api/comment/page/novel', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
